{extend name="public/base"/}
{block name="style"}
    <script src="/public/lboyue/js/libs/jquery.cookie.js"></script>
    <script src="/public/lboyue/js/libs/jquerybase64.js"></script>
    <script src="/public/lboyue/js/book.js"></script>
{/block}
{block name="body"}
{include file="public/header" /}
      <div class="bodySection">
            
    <div class="centerSection">
        <div class="leftSection">
            <div class="classification">
                <ul>
                    <li>
                        <div class="left">频道：</div>
                        <div class="right">
                            <a href="/books?channel=0&cate={$cate}&fullflag={$fullflag}&upday={$upday}&size={$size}&keyword={$searchkey}&order={$order}&isvip={$isvip}"  class="all {if condition="($channel == 0)"}active{/if}"  >全部</a>
                            <a href="/books?channel=1&cate={$cate}&fullflag={$fullflag}&upday={$upday}&size={$size}&keyword={$searchkey}&order={$order}&isvip={$isvip}"  {if condition="($channel == 1)"}class="active"{/if}>男频</a><a href="/books?channel=2&cate={$cate}&fullflag={$fullflag}&upday={$upday}&size={$size}&keyword={$searchkey}&order={$order}&isvip={$isvip}"  {if condition="($channel == 2)"}class="active"{/if}>女频</a>                        </div>
                    </li>
                    
                    <li>
                        <div class="left">分类：</div>
                        <div class="right">
							<a href="/books?channel={$channel}&cate=0&fullflag={$fullflag}&upday={$upday}&size={$size}&keyword={$searchkey}&order={$order}&isvip={$isvip}"  class="all {if condition="($cate == 0)"}active{/if}"  >全部</a>
							{volist name="category" id="vo"}
								<a href='/books?channel={$channel}&cate={$vo.id}&fullflag={$fullflag}&upday={$upday}&size={$size}&keyword={$searchkey}&order={$order}&isvip={$isvip}' class="{eq name="vo.id" value="$cate"}active{/eq}">{$vo.title}</a>
							{/volist}
						</div>
                    </li>
                                        <li>
                        <div class="left">字数：</div>
                        <div class="right">
                            <a href="/books?channel={$channel}&cate={$cate}&fullflag={$fullflag}&upday={$upday}&size=&keyword={$searchkey}&order={$order}&isvip={$isvip}" class="all {if condition="($size=='')"}active{/if}" >不限</a>
                            <a href="/books?channel={$channel}&cate={$cate}&fullflag={$fullflag}&upday={$upday}&size=1&keyword={$searchkey}&order={$order}&isvip={$isvip}"  {eq name="size" value="1"}class="active"{/eq}>30万以下</a>
                            <a href="/books?channel={$channel}&cate={$cate}&fullflag={$fullflag}&upday={$upday}&size=2&keyword={$searchkey}&order={$order}&isvip={$isvip}" {eq name="size" value="2"}class="active"{/eq} > 30-50万  </a>
                            <a href="/books?channel={$channel}&cate={$cate}&fullflag={$fullflag}&upday={$upday}&size=3&keyword={$searchkey}&order={$order}&isvip={$isvip}"  {eq name="size" value="3"}class="active"{/eq}>50-100万</a>
                            <a href="/books?channel={$channel}&cate={$cate}&fullflag={$fullflag}&upday={$upday}&size=4&keyword={$searchkey}&order={$order}&isvip={$isvip}"  {eq name="size" value="4"}class="active"{/eq}>100万以上</a>
                        </div>
                    </li>
                    <li>
                        <div class="left">排序：</div>
                        <div class="right">
                            <a href="/books?channel={$channel}&cate={$cate}&fullflag={$fullflag}&upday={$upday}&size={$size}&keyword={$searchkey}&order=&isvip={$isvip}" class="all {if condition="($order=='')"}active{/if}" >不限</a>
                            <a href="/books?channel={$channel}&cate={$cate}&fullflag={$fullflag}&upday={$upday}&size={$size}&keyword={$searchkey}&order=update_time&isvip={$isvip}"  >最近更新</a>
                            <a href="/books?channel={$channel}&cate={$cate}&fullflag={$fullflag}&upday={$upday}&size={$size}&keyword={$searchkey}&order=allvisit&isvip={$isvip}"  >点击排行</a>
                        </div>
                    </li>
                    <li>
                        <div class="left">更新：</div>
                        <div class="right">
                            <a href="/books?channel={$channel}&cate={$cate}&fullflag={$fullflag}&upday=&size={$size}&keyword={$searchkey}&order={$order}&isvip={$isvip}" class="all {if condition="($upday=='')"}active{/if}" >不限</a>
                            <a href="/books?channel={$channel}&cate={$cate}&fullflag={$fullflag}&upday=1&size={$size}&keyword={$searchkey}&order={$order}&isvip={$isvip}"  {eq name="upday" value="1"}class="active"{/eq}>三日内</a>
                            <a href="/books?channel={$channel}&cate={$cate}&fullflag={$fullflag}&upday=2&size={$size}&keyword={$searchkey}&order={$order}&isvip={$isvip}" {eq name="upday" value="2"}class="active"{/eq} >七日内</a>
                            <a href="/books?channel={$channel}&cate={$cate}&fullflag={$fullflag}&upday=3&size={$size}&keyword={$searchkey}&order={$order}&isvip={$isvip}"  {eq name="upday" value="3"}class="active"{/eq}>半月内</a>
                            <a href="/books?channel={$channel}&cate={$cate}&fullflag={$fullflag}&upday=4&size={$size}&keyword={$searchkey}&order={$order}&isvip={$isvip}"  {eq name="upday" value="4"}class="active"{/eq}>一月内</a>
                        </div>
                    </li>
                    <li>
                        <div class="left">收费：</div>
                        <div class="right">
                            <a href="/books?channel={$channel}&cate={$cate}&fullflag={$fullflag}&upday={$upday}&size={$size}&keyword={$searchkey}&order={$order}&isvip=" class="all {if strlen($isvip)==0}active{/if}" >不限</a>
                            <a href="/books?channel={$channel}&cate={$cate}&fullflag={$fullflag}&upday={$upday}&size={$size}&keyword={$searchkey}&order={$order}&isvip=0"  {eq name="isvip" value="0"}class="active"{/eq}>免费</a>
                            <a href="/books?channel={$channel}&cate={$cate}&fullflag={$fullflag}&upday={$upday}&size={$size}&keyword={$searchkey}&order={$order}&isvip=1"  {eq name="isvip" value="1"}class="active"{/eq}>收费</a>
                        </div>
                    </li>
                    <li class="last">
                        <div class="left">状态：</div>
                        <div class="right">
                            <a href="/books?channel={$channel}&cate={$cate}&fullflag=&upday={$upday}&size={$size}&keyword={$searchkey}&order={$order}&isvip={$isvip}" class="all {if condition="($fullflag=='')"}active{/if}" >不限</a>
                            <a href="/books?channel={$channel}&cate={$cate}&fullflag=0&upday={$upday}&size={$size}&keyword={$searchkey}&order={$order}&isvip={$isvip}"  {eq name="fullflag" value="0"}class="active"{/eq}>未完结</a>
                            <a href="/books?channel={$channel}&cate={$cate}&fullflag=1&upday={$upday}&size={$size}&keyword={$searchkey}&order={$order}&isvip={$isvip}"  {eq name="fullflag" value="1"}class="active"{/eq}>已完结</a>
                        </div>
                    </li>
                </ul>
            </div>


            <div class="caseSection">
                <div class="caseSection_title">共找到{$total}部作品</div>
                <div class="caseSection_list">
                <ul>
				{volist name="list" id="item"}
					<li>
						<div class="leftImage">
							<a href="{:url('/book/info',array("id"=>$item.id))}"><img src="{$item.cover}" alt="" onerror="javascript:this.src='/public/novel/images/default.jpg';" alt="" /></a>
						</div>
						<div class="rightContent">
								<a href="{:url('/book/info',array("id"=>$item.id))}"><div class="title">{$item.title}</div> </a>
								<div class="link">
									<span>{$item.keywords}</span>
								</div>
								<a href="{:url('/book/info',array("id"=>$item.id))}">
									<div class="cons">{$item.intro|strip_tags|mb_substr=0,80,'utf-8'
}</div>
								</a>

							<div class="bottom">
								<a href="/chapter/read/{$item.id}/{$item.lastvolumeid}/"><span class="left"><i>最新更新: {$item.lastvolume} </i> </span></a>
								<span class="right">
									<a class="button active" href="/chapter/read/{$item.id}/{$item.fristchapter}/">点击阅读</a>
									<a class="button" onclick="addbookshelf({$item.id}, 0, 2, '{$Think.config.web_pc_url|str_replace="http://www","",###}')">加入书架</a>
								</span>
							</div>
						</div>
					</li>
				{/volist}
				</ul>
				</div>
                {$list->render()}
                
            </div>

        </div>


        <div class="rightSection">
            <div class="recommendationSection">
                <div class="section_title">精品推荐</div>
                <div class="detailSection_other  detailSection_other2">
                    <div class="list">
                        <ul>
						{list name="novel" id="item" limit="5" map=" status=1 and display=1 and FIND_IN_SET(9,is_top)"}
                            <li>
                                    <a href="{:url('/book/info',array("id"=>$item.id))}" >
                                        <span class="left">
                                            <img src="{$item.cover}" alt="" onerror="javascript:this.src='/public/novel/images/default.jpg';" alt="" />
                                        </span>
                                    <span class="content">
                                        <span class="name" title="{$item.title}">{$item.title|mb_substr=0,9,'utf-8'}</span>
                                        <i>作者: {$item.author}</i>
                                        <span class="cons">{$item.intro|mb_substr=0,30,'utf-8'}...</span>
                                    </span>
                                    </a>
                                </li>
							{/list}
						</ul>
                    </div>
                </div>
            </div>
        </div>


    </div>

        </div>

{block name="include"}{include file="public:footer" /}{/block}
{/block}
{block name="script"}
    <script>
        $(document).ready(function () {
           liactive("navpages", "books", "a", "");
        });
    </script>
	<script>
		$(document).ready(function () {
			bindnews();
			bindbookshelf();
			bindnav();
		});

	</script>
{/block}


